using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TimeCircle : MonoBehaviour
{
    public DragAndShoot shootManager;
    bool isKilling = true;
    Collider2D collider;
    private void Start()
    {
        collider = GetComponent<Collider2D>();
    }
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.gameObject.CompareTag("Enemy"))
        {
            shootManager.TriggerShooting();
            Destroy(collision.gameObject);
            collider.enabled = false;
        }
    }
   
    public void TriggerKilling()
    {
        collider.enabled=true;
    }



}
